import { Tree } from "antd";

/*
 * @Author: DevZhang 
 * @Date: 2019-09-16 21:38:27 
 * @Last Modified by: zhang
 * @Last Modified time: 2019-09-23 15:49:19
 */

export default {
    plugins: [
        ['umi-plugin-react', {
            antd: true,
            dva: true,
        }]
    ],
    routes: [{
        path: '/',
        component: '../layout/BasicLayout',
        routes: [
            // { 
            //     path: '/', 
            //     component: './HelloWorld' 
            // },
            { 
                path: '/', 
                component: './list' 
            },
            { 
                path: 'helloworld', 
                component: './HelloWorld' 
            },
            { 
                path: 'puzzlecards', 
                component: './Puzzlecards' 
            },
            { 
                path: 'list', 
                component: './list' 
            },
            { 
                path: 'dashboard', 
                routes: [
                    { 
                        path: '/dashboard/analysis', 
                        component: 'Dashboard/Analysis' 
                    },
                    { 
                        path: '/dashboard/monitor', 
                        component: 'Dashboard/Monitor' 
                    },
                    { 
                        path: '/dashboard/workplace', 
                        component: 'Dashboard/Workplace' 
                    }
                ]
            }
        ]
    }],
    // proxy: {
    //     '/dev': {
    //         target: 'http://yapi.demo.qunar.com/mock/97345',
    //         changeOrigin: true
    //     }
    // },
}